package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 脱产培训规则
 * </p>
 *
 * @author jondai
 * @since 2017-12-27
 */
@TableName("fulltime_train_rule")
public class FulltimeTrainRule extends Model<FulltimeTrainRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.UUID)
	private String id;
    /**
     * 学时不少于
     */
	@TableField("least_hour")
	private Integer leastHour;
    /**
     * 开始学时段
     */
	@TableField("start_hour")
	private Integer startHour;
    /**
     * 结束学时段
     */
	@TableField("end_hour")
	private Integer endHour;
    /**
     * 学分/时
     */
	private Double credit;
    /**
     * 状态
     */
	private Integer state;
    /**
     * 培训学员培训：1.经营人员 2.管理人员 3.技术人员 4.技能人员
     */
	@TableField("emp_type")
	private Integer empType;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getLeastHour() {
		return leastHour;
	}

	public void setLeastHour(Integer leastHour) {
		this.leastHour = leastHour;
	}

	public Integer getStartHour() {
		return startHour;
	}

	public void setStartHour(Integer startHour) {
		this.startHour = startHour;
	}

	public Integer getEndHour() {
		return endHour;
	}

	public void setEndHour(Integer endHour) {
		this.endHour = endHour;
	}

	public Double getCredit() {
		return credit;
	}

	public void setCredit(Double credit) {
		this.credit = credit;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getEmpType() {
		return empType;
	}

	public void setEmpType(Integer empType) {
		this.empType = empType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "FulltimeTrainRule{" +
			"id=" + id +
			", leastHour=" + leastHour +
			", startHour=" + startHour +
			", endHour=" + endHour +
			", credit=" + credit +
			", state=" + state +
			", empType=" + empType +
			"}";
	}
}
